<?php
session_start();
include("conn.php");
date_default_timezone_set("PRC");
$xh=$_POST['xh'];
$name=$_POST['name'];
$xb=$_POST['xb'];
$bj=$_POST['bj'];
$zy=$_POST['zy'];
$dh=$_POST['dh'];
$jtdz=$_POST['jtdz'];
$sql=mysqli_query($link,"insert into xs(xh,name,xb,bj,zy,dh,jtdz)values('$xh','$name','$xb','$bj','$zy','$dh','$jtdz')");
echo "<script>alert('学生信息添加成功!');window.location.href='index2.php';</script>";
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

?>